<?php
/**
* Do all the declarations etc needed by an admin page
*/
include_once "adminheader.inc";

// clean data passed to the form
$cleanPost = cleanInput($_POST);
$submit = $cleanPost['submit'];

// no options selected yet
switch (TRUE) {
case (!isset($cleanPost['conf_id'])):
	redirect_header(XOOPS_URL."/modules/confreg/admin/admenu5.php",5, "No conference specified. Redirecting to reports menu.");
	exit;
	break;
case ($submit == 'User Report'):
	//Display the admin menu
	xoops_module_admin_menu(6,_AM_CONFREG_ADMENU5);
	echo '<form action="report_export.php" method=post><input type=hidden name="conf_id" value="' . intval($cleanPost['conf_id']) . '"><input type=submit name="submit" value="User PDF"></form>';
	echo '<form action="report_export.php" method=post><input type=hidden name="conf_id" value="' . intval($cleanPost['conf_id']) . '"><input type=submit name="submit" value="Download CSV"></form>';
	echo '<form action="report_export.php" method=post><input type=hidden name="conf_id" value="' . intval($cleanPost['conf_id']) . '"><input type=submit name="submit" value="CSV for Vendors"></form>';
	echo '<form action="report_export.php" method=post><input type=hidden name="conf_id" value="' . intval($cleanPost['conf_id']) . '"><input type=submit name="submit" value="Name Badges PDF"></form>';
	echo html_user_report(intval($cleanPost['conf_id']));
	break;
default:
	redirect_header(XOOPS_URL."/modules/confreg/admin/admenu5.php",5, "error in data. Redirecting to reports menu.");
	break;
}

echo '<p><p>';
xoops_cp_footer();
break;

/*
 * This file was generated by XBS ModGen, (c) 2006 A Kitson, UK. See http://xoobs.net
 * ModGen is a Module Code Generator for the Xoops CMS.  See http://xoops.org
 */
?>